<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test</title>
</head>
<body>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.0.min.js"></script>
<script type="text/javascript">
var req;
function test_auth_url()
{
	test_url = "./auth_url.php";
	$.getJSON(test_url, function(json) {
		$("#test").append("<a href = \"" + json.auth_url + "\">" + "Click me!</a>");
		alert(json.auth_url);
	});
}
function test_data_stat()
{
	test_url = "./data_stat.php";
	$.getJSON(test_url, function(json) {
		$("#test").append(json.top_statuses[0].text);
		alert(json.top_statuses[0].text);
	});
}

//test_auth_url();
test_data_stat();
</script>
<div id="test"/>
</body>
</html>
